import java.util.Scanner;

public class demo12 {
    public static void main(String[] args) {
        int[] s={13,6,75,22,11,8,5,7,1};
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入需要交换的两个数的位置");
        int a= sc.nextInt();
        int b=sc.nextInt();
        int c=0;

        if((a>=0 && a<=s.length)||(b>=0 && b<=s.length)){
                c=s[a-1];
                s[a-1]=s[b-1];
                s[b-1]=c;
        }
        for (int i=0;i<s.length;i++){
            System.out.print(s[i]+"\t");
        }
    }
}
